* { padding: 0; margin: 0; border: 0; }
html, body { padding: 0; margin: 0; }
div, span, p, button, a, input { font-size: 14px; color: #fff; box-sizing: border-box; }
a { text-decoration: none; }
html { background-color: rgb(0,0,0); font-family: comic sans MS; }

.game {
	display: flex;
	position: fixed;
	z-index: 1;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* 地图 */
.map {
	width: 600px;
	height: 900px;
	display: flex;
	flex-direction: column;
	background-color: rgb(5,31,1);
	position: relative;
}
.map .tr { flex: 1; display: flex; }
.map .td { flex: 1; display: flex; align-items: center; justify-content: center; }

/* 墙 */
.wall {
	width: 100%;
	height: 100%;
	background-color: rgb(9,63,8);
	border: 1px solid rgb(86,249,83);
}

/* 金币 */
.beans {
	width: 25%;
	height: 25%;
	border-radius: 50%;
	background-color: #ff9900;
}

/* 大金币 */
.beans-big {
	width: 40%;
	height: 40%;
	border-radius: 50%;
	background-color: #ff9900;
	box-shadow: 0 0 4px 4px rgba(255,165,0, .6);
	animation: beansAni 1s linear infinite;
}

@keyframes beansAni {
	0% { box-shadow: 0 0 4px 4px rgba(255,165,0, .6); }
	50% { box-shadow: 0 0 2px 2px rgba(255,165,0, .6); }
	100% { box-shadow: 0 0 4px 4px rgba(255,165,0, .6); }
}

/* 吃豆人 */
.spirit {
	width: 24px;
	height: 24px;
	background-color: rgb(255,165,0);
	border-radius: 50%;
	position: absolute;
	transition-property: left, top;
	transition-timing-function: linear;
	z-index: 2;
}
.spirit::before {
	content: "";
	position: absolute;
	width: 80%;
	height: 90%;
	right: -1px;
	top: 50%;
	background-color: rgb(5, 31, 1);
	transform: translateY(-50%);
	clip-path: polygon(100% 0, 100% 100%, 20% 50%);
	animation: zmlAniMouth .5s infinite linear;
}
@keyframes zmlAniMouth {
	0% { height: 100%; }
	50% { height: 0%; }
	100% { height: 100%; }
}

/* 怪兽 */
.monster {
	width: 24px;
	height: 24px;
	position: absolute;
	transition-property: left, top;
	transition-timing-function: linear;
	z-index: 1;
}
.monster img {
	width: 100%;
	height: 100%;
}
.monster.isWeak {
	filter: grayscale(1);
}

/* 遮罩 */
.mask {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 99;
	background-color: rgba(0,0,0,0.6);
	color: #fff;
	font-weight: bold;
	font-size: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}


/* 分数展示 */
.info {
	width: 250px;
	padding: 10px 0;
	background-color: rgb(9,63,8);
	border: 1px solid rgb(86,249,83);
	margin-left: 30px;
}
.info .name {
	font-size: 50px;
	text-align: center;
	white-space: nowrap;
	font-weight: bold;
}
.info .rule {
	padding: 0 20px;
	margin-top: 30px;
	line-height: 28px;
}
.info .score {
	font-size: bold;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 20px;
	font-size: 40px;
	line-height: 1.2;
	margin-top: 50px;
}
.info .score>span {
	display: inline-block;
	margin-bottom: 20px;
}